home *** CD-ROM | disk | FTP | other *** search
/ Exame Informatica 139 / Exame Informatica 139.iso / Revista / Flash / Uniform Server / diskw / home / admin / www / update.php < prev    next >
Encoding:
PHP Script  |  2005-03-31  |  1.3 KB  |  58 lines

  1. <?
  2. /*
  3. ####################################################
  4. # Name: The Uniform Server Admin Panel 2.0
  5. # Developed By: The Uniform Server Development Team
  6. # Modified Last By: Olajide Olaolorun (empirex) 
  7. # Web: http://www.uniformserver.com
  8. ####################################################
  9. */
  10.  
  11. // Includes
  12. include "includes/config.inc.php";
  13. include "$apanel_path/includes/lang/".file_get_contents("includes/.lang").".php"; 
  14. include "includes/header.php";
  15. ?>
  16.  
  17. <div id="main">
  18. <h2>» <?=$US['update-head']?></h2>
  19. <h3><?=$US['update-check']?></h3>
  20. <p>
  21. <?
  22. //-------------------------------------------------------------------- 
  23.  
  24. $available = file ('http://www.uniformserver.com/system/.version');
  25. //$available = file ('includes/.version');
  26. $my = file ('includes/.version');
  27.  
  28. //--------------------------------------------------------------------
  29. if (rtrim($my[0]) == rtrim($available[0])) {
  30. ?>
  31.     <?=$US['update-true']?>
  32. <?
  33. }
  34.  
  35. else{
  36. ?>
  37.     <?=$US['update-false']?>
  38.     <br />
  39.     <br />
  40. <?
  41.       echo "". $US['update-new'] .": $available[0]";
  42.     echo "<br />";
  43.       echo "". $US['update-yours'] .": $my[0]";
  44.     echo "<br /><br />";
  45. ?>
  46.     <?=$US['update-get']?>
  47.     <br />
  48.     <a href="http://www.uniformserver.com/" target="_blank"><h2><?=$US['nav-web']?></h2></a>
  49. <?
  50. }
  51. ?>
  52. </p>
  53. </div>
  54.  
  55. <?
  56. // Footer
  57. include "includes/footer.php";
  58. ?>